package com.csun.cmny.provider.service;

import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.DmcDeviceOnlineRecord;
import com.csun.cmny.provider.model.dto.deviceOnlineRecord.DeviceOnlineQueryDto;

import java.util.List;

public interface DmcDeviceOnlineRecordService extends IService<DmcDeviceOnlineRecord> {
    /**
     * 查询设备在离线记录列表 - 分页查询
     *
     * @param deviceOnlineQueryDto  the device online query dto
     *
     * @return  the list.
     */
    List<DmcDeviceOnlineRecord> queryListWithPage(DeviceOnlineQueryDto deviceOnlineQueryDto);

    /*根据设备编号上传在离线日志*/
    Integer insertRecordByDeviceNo(String deviceNo,Integer online);

    /**
     * 根据设备Id删除在离线记录
     *
     * @param deviceId  the device id
     *
     * @return  the int.
     */
    Integer deleteByDeviceId(Long deviceId);
}
